﻿/* 5. Write program that asks for a digit and depending on the input shows the name of that digit (in English) 
 * using a switch statement. */

using System;

public class PronunciationOfDigits
{
    public static void Main()
    {
        byte digit;
        string letter = "";

        Console.Write("Enter a digit between 0 and 9 inclusive: ");
        digit = byte.Parse(Console.ReadLine());
        Console.WriteLine("------------");

        switch (digit)
        {
            case 0: { letter = "zero";  break; }
            case 1: { letter = "one";   break; }
            case 2: { letter = "two";   break; }
            case 3: { letter = "three"; break; }
            case 4: { letter = "four";  break; }
            case 5: { letter = "five";  break; }
            case 6: { letter = "six";   break; }
            case 7: { letter = "seven"; break; }
            case 8: { letter = "eight"; break; }
            case 9: { letter = "nine";  break; }
            default: break;
        }

        Console.WriteLine("{0}\n", letter != "" ? letter.ToString() : "Incorrect data input!");
    }
}